V2EX  ›  英汉词典

Early Binding

Definition / 定义

early binding(早期绑定/静态绑定):在编程语言中,在编译期就确定函数/方法调用要绑定到的具体实现(例如确定调用哪个函数地址、哪个重载版本或哪个方法实现),而不是等到运行时再决定。常与 late binding(后期绑定/动态绑定) 相对。(在不同语言与语境中也可能延伸指“较早阶段确定依赖关系/类型/调用目标”。)

Pronunciation / 发音

/ˈɝːli ˈbaɪndɪŋ/

Examples / 例句

Early binding can make programs run faster.
早期绑定可以让程序运行得更快。

In languages that favor early binding, many method calls are resolved at compile time, which improves performance but can reduce flexibility when extending behavior through polymorphism.
在偏向早期绑定的语言中,许多方法调用会在编译期就被解析,这能提升性能,但在通过多态扩展行为时可能降低灵活性。

Etymology / 词源

early 来自古英语 ǣrlic(意为“早的、及时的”),与“在……之前”的时间概念相关;bind 来自古英语 bindan(“捆绑、系住”)。binding 在计算机语境中引申为“把名字/调用与具体实现或资源‘绑定’起来”。因此 early binding 字面含义就是“在较早阶段完成绑定”,在编程中通常指“编译期绑定”。

Related Words / 相关词

Literary Works / 文学作品

  • The C++ Programming Language(Bjarne Stroustrup)
  • *Effective C++*(Scott Meyers)
  • Programming Language Pragmatics(Michael L. Scott)
  • Design Patterns: Elements of Reusable Object-Oriented Software(Gamma, Helm, Johnson, Vlissides)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   726 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 19:34 · PVG 03:34 · LAX 11:34 · JFK 14:34
♥ Do have faith in what you're doing.